<template>
    <div class="title">
        <span class="text">{{title}}</span>
        <span class="fx-1"></span>
        <slot></slot>
    </div>
</template>

<script lang="ts">
  import { Vue, Component } from 'vue-property-decorator'

  @Component({
    props: ['title']
  })
  export default class Title extends Vue {

  }
</script>

<style lang="less" scoped>
    .title {
        display: flex;
        font-size: 20px;
        color: #666;
        margin: 20px auto;
        padding-left: 20px;
    }

    .text {
        min-width: 200px;
        color: #4E93FF;
    }
</style>
